<?php
class Variables_Form_AsignarUsuario extends Form_Base{
	
		
	public function __construct($options = null) {
		parent::__construct($options);
	}
	
	public function init() {
		$domConfig = Zend_Registry::get('domConfig');
		
		$this->setName('asignarusuario');
		$this->setMethod("post");
		$this->setAttrib("class","highlight");
						
		$nombreusuario = new App_Form_Element_Autocompletar("usuario", "codusuario", "/variables/index/autolista",array("coddimension"));
		$nombreusuario->setLabel ( 'Usuario : ' );
		$nombreusuario->setAttribs(array('size'=>70));
		$nombreusuario->setRequired ( true );
		$nombreusuario->addFilter ( 'StripTags' );
		$nombreusuario->addFilter ( 'StringTrim' );
				
		$submit = new Zend_Form_Element_Submit ( 'btnSubmit' );
		$submit->setValue('Guardar');
		$submit->setLabel("Asignar usuario");
		$submit->setAttrib("class", "iceCmdBtn");
		
		$coddimension	= new Zend_Form_Element_Hidden("coddimension");
		$codvariable	= new Zend_Form_Element_Hidden("codvariable");
		$codusuario     = new Zend_Form_Element_Hidden("codusuario");
								
		$this->addElements ( array ( $coddimension,
									 $nombreusuario,
									 $submit,
									 $codusuario,
									 $codvariable
								 ) );
		
		$this->loadTableDecorators();
	}

}